package com.ruoyi.home.domain.xy;

import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.home.domain.CwPaymentPlanDto;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class SaveSfContractForm extends BaseEntity {
	
	//@FormField(name="上一合同ID")
	private Long lastContractId;
	
	//@FormField(name="上一合同编号")
	private String lastContractNo;
	
	//@NotEmpty
	//@FormField(name="小区名称")
	private String premiseName;
	
	//@NotEmpty
	//@FormField(name="房产信息")
	private String houseInfo;
	
	//@FormField(name="房产Id")
	private String houseId;
	
	//@NotNull
	//@FormField(name="所有权类型")
	private Integer houseType;
	
	//@NotEmpty
	//@FormField(name="房产证书编号")
	private String houseZsNo;
	
	//@NotEmpty
	//@FormField(name="产权地址")
	private String cqAddress;

	//@NotEmpty
	//@FormField(name="业主姓名")
	private String ownerName;

	//@FormField(name="业主/签约人证件类型")
	private Integer certificateType;

	//@NotEmpty
	//@FormField(name="业主证件号")
	private String ownerIdCard;
	
	//@NotEmpty
	//@FormField(name="业主手机号")
	private String ownerMobile;
	
	//@NotEmpty
	//@FormField(name="业主联系地址")
	private String ownerContactAddress;
	
	//是否为签约人 0:是   1:否
	//@FormField(name="是否为签约人")
	private Boolean signWithOwner;
		
	//@NotEmpty
	//@FormField(name="签约人")
	private String signUserName;
	
	//@NotEmpty
	//@FormField(name="签约人证件号")
	private String signUserIdCard;
	
	//@NotEmpty
	//@FormField(name="签约人手机号")
	private  String signUserMobile;
	
	//@NotEmpty
	//@FormField(name="紧急联系电话")
	private String signUserEmergencyPhone;
	
	//@FormField(name="银行卡号")
	private String bankCard;
	
	//@FormField(name="持卡人姓名")
	private String bankUserName;
	
	//@FormField(name="持卡人身份证")
	private String bankUserIdCard;
	
	//@FormField(name="开户行")
	private String bankOpen;
	
	//@FormField(name="开户银行")
	private String bankName;
	
	/*******************5个新加字段start*********************/   
    /**
     * 银行账户类型（对公账户、对私账户）AccountTypeEnum
     */
	//@FormField(name="银行账户类型")
    private Long accountType;
    
    /**
     * 银行卡号
     */
    //@FormField(name="银行卡号")
    private String bankCardNumber;

    /**
     * 账户名称（对公为企业名称，对私为姓名）
     */
    //@FormField(name="账户名称")
    private String accountName;

    /**
     * 联行行号（手输，对公必须）
     */
    //@FormField(name="联行行号")
    private String bankBranchCodeLh;
    
    /**
     * 开户行所在省ID
     */
    //@FormField(name="开户行所在省")
    private Integer bankAccountProvince;
 /*******************新加字段end*********************/ 

	//@NotNull(message="不能为空")
	//@FormField(name="租约起始日期")
	private Date startDate;

	//@NotNull(message="不能为空")
	//@FormField(name="租约结束日期")
	private Date endDate;

	//@NotEmpty
	//@Pattern(regexp="([1-9]\\d*|0)(\\.\\d{1,2})?",message="{common.money.format.fail}")
	//@FormField(name="租金")
	private String monthRent;

	//@NotEmpty
	//@Pattern(regexp="([1-9]\\d*|0)(\\.\\d{1,2})?",message="{common.money.format.fail}")
	//@FormField(name="房产押金")
	private String depositMoney;

	//@NotNull(message="不能为空")
	//@FormField(name="支付方式(押X付Y的X)")
	private Integer depositType;

	//@NotNull(message="不能为空")
	//@FormField(name="支付方式(押X付Y的Y)")
	private Integer paymentType;


	//@FormField(name="备注")
	private String remark;

	//@FormField(name="房产证件照")
	private String[] houseDocumentPhotos;

	//@FormField(name="收房合同照")
	private String[] contractPhotos;
	
	//@FormField(name="业主身份证明照")
	private String[] cardPhotos;

	//@FormField(name="代理人身份证明照")
	private String[] agentCardPhotos;

	//@FormField(name="银行卡信息照")
	private String[] bankCardInformationPhotos;
	
	//@FormField(name="委托书照")
	private String[] attorneyPhotos;
	
	//@FormField(name="物业交割单照")
	private String[] propertyDeliverys;
	
	//@FormField(name="其他照")
	private String[] otherPhotos;
		

	/**
	 * 合同总金额（非保存项）
	 */
	private BigDecimal totalAmount;
	/**
	 * 收款计划首期or押金日期变更标志（非保存项）
	 */
	private Integer preCycleChange;

	/*付款信息单*/
	List<CwPaymentPlanDto> payMentltems;

	
}
